﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLySieuThi.Views
{
    public partial class frmMatKhau : Form
    {
        public frmMatKhau()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (txtMatKhau.Text.Length > 3)
            {
                frmNhanVien.matkhau = txtMatKhau.Text;
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
                this.Close();
            }
            else
            {
                MessageBox.Show("Mật khẩu quá ngắn!");
            }
            
        }

        private void frmMatKhau_Load(object sender, EventArgs e)
        {

        }
    }
}
